package com.zhitong.ztblog.mappers;

import com.zhitong.ztblog.entity.Log;
import org.apache.ibatis.annotations.*;

@Mapper
public interface LogMapper {


    @Select("select * from log order by time desc")
    public Log[] findAll();

    @Insert("insert into log values(null,#{name},#{time},#{nickName})")
    public void insertLog(Log log);
}
